package sky.service.Impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import sky.dao.AbstractDAO;
import sky.dao.AirportDAO;
import sky.domain.Airport;
import sky.service.AirportService;
import sky.tro.finders.AirportFinder;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: Gauss
 * Date: 23.04.13
 * Time: 10:33
 * To change this template use File | Settings | File Templates.
 */
@Service
public class AirportServiceImpl extends AbstractServiceImpl<Airport> implements AirportService{

    @Autowired
    private AirportDAO airportDAO;

    @Override
    @Transactional
    public List<String> listCodes() {
        return airportDAO.listCodes();
    }

    @Override
    protected AbstractDAO<Airport> getDAO() {
        return airportDAO;
    }
}
